<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>待办信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
<style type="text/css">
body, div, ul, li {margin: 0; padding: 0;}
ul, li {list-style: none;}
font{font-size: 14px;}
#ul_count li {
	height: 32px;
	line-height: 32px;
    border-bottom: 1px dashed #bec3c7;
}
#ul_count span {color: grey;}
#ul_count span a {color: #000000; text-decoration: none;}
</style>	
  </head>
  
  <body>
    <div id="div_count">
    	<ul id="ul_count">
    	 <li><font>&nbsp;您当前待审批流程有：&nbsp;</font><label><font color="red"><a href="javascript:showToDetail(1)">${todoCount }</a></font></label>&nbsp;<font>条</font></li>
    	 <li><font>&nbsp;您负责的计划共有：&nbsp;</font><label><font color="blue"><a href="javascript:showToDetail(2)">${taskPlanCount }</a></font></label>&nbsp;<font>项</font></li>
    	 	<li><font>&nbsp;&nbsp;&nbsp;&nbsp;已完成&nbsp;</font><label><font color="green">${finishPlan }</font></label>&nbsp;<font>项</font></li>
    	 	<li><font>&nbsp;&nbsp;&nbsp;&nbsp;超时完成&nbsp;</font><label><font color="red">${timeoutfinishPlan }</font></label>&nbsp;<font>项</font></li>
    	 	<li><font>&nbsp;&nbsp;&nbsp;&nbsp;未完成&nbsp;</font><label><font color="blue">${nofinishPlan }</font></label>&nbsp;<font>项</font></li>
    	 	<li><font>&nbsp;&nbsp;&nbsp;&nbsp;超时未完成&nbsp;</font><label><font color="red">${timeoutNofinishPlan }</font></label>&nbsp;<font>项</font></li>
    	</ul>
    </div>
  </body>
<script type="text/javascript">
	function showToDetail(type) {
		var obj ={};
		if(type == 1){
			obj.title='流程待办';
			obj.url='taskWorkflow/todo.shtml?menuId=45';
			obj.menuId ='45';
		}
		
		if(type == 2){
			obj.title='我的计划';
			obj.url='taskPlan/myPlanList?menuId=91';
			obj.menuId ='91';
		}
		
		window.parent.addTab(obj.title, obj.url, obj.menuId);
	}
</script>  
</html>
